<?php
namespace App\Model\Table;
use Cake\ORM\Table;
class ProjectsTable extends Table {
    public function initialize(array $config){
        $this->table('projects');
        $$this->hasMany(
            'TeamHasProjects',[
                'className'=>'TeamHasProjects',
                'foreignKey' => 'project_id',
            ]);
    }
}
?>